package com.bao.work.other;

public class Human {
    private String name;
    private int age;
    private String sex;

    public Human() {
    }

    public Human(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void ziWo(){
        System.out.println("姓名："+name);
        System.out.println("年龄："+age);
        System.out.println("性别："+sex);
    }
}
class Actor extends Human{
    private String school;
    private String book;

    public Actor() {
    }

    public Actor(String name, int age, String sex, String school, String book) {
        super(name, age, sex);
        this.school = school;
        this.book = book;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getBook() {
        return book;
    }

    public void setBook(String book) {
        this.book = book;
    }

    @Override
    public void ziWo() {
        super.ziWo();
        System.out.println("毕业于"+school);
        System.out.println("代表作"+book);
    }
}
class Sport extends Human{
    private String xMu;
    private String maxScore;

    public Sport() {
    }

    public Sport(String name, int age, String sex, String xMu, String maxScore) {
        super(name, age, sex);
        this.xMu = xMu;
        this.maxScore = maxScore;
    }

    public String getxMu() {
        return xMu;
    }

    public void setxMu(String xMu) {
        this.xMu = xMu;
    }

    public String getMaxScore() {
        return maxScore;
    }

    public void setMaxScore(String maxScore) {
        this.maxScore = maxScore;
    }

    @Override
    public void ziWo() {
        super.ziWo();
        System.out.println("项目"+xMu);
        System.out.println("最好成绩"+maxScore);
    }
}
